import request from '@/utils/request'

// 查询平台权益订单列表
export function listPlatformRightsOrder(query) {
  return request({
    url: '/system/platformRightsOrder/list',
    method: 'get',
    params: query
  })
}

// 查询平台权益套餐列表
export function platformRightsGetList(query) {
  return request({
    url: '/system/platformRights/platformRightsList',
    method: 'get',
    params: query
  })
}

// 支付购买套餐
export function payOrder(data) {
  return request({
    url: '/system/platformRightsOrder/payOrder',
    method: 'post',
    data: data
  })
}

// 查询平台权益订单详细
export function getPlatformRightsOrder(id) {
  return request({
    url: '/system/platformRightsOrder/' + id,
    method: 'get'
  })
}

// 新增平台权益订单
export function addPlatformRightsOrder(data) {
  return request({
    url: '/system/platformRightsOrder',
    method: 'post',
    data: data
  })
}

// 修改平台权益订单
export function updatePlatformRightsOrder(data) {
  return request({
    url: '/system/platformRightsOrder',
    method: 'put',
    data: data
  })
}

// 删除平台权益订单
export function delPlatformRightsOrder(id) {
  return request({
    url: '/system/platformRightsOrder/' + id,
    method: 'delete'
  })
}
